projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e1e5da
)
(outline-mode): Use `^' and a shy group
author
Gerd Moellmann
<gerd@gnu.org>
Tue, 11 Sep 2001 08:30:54 +0000
(08:30 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Tue, 11 Sep 2001 08:30:54 +0000
(08:30 +0000)
when constructing imenu-generic-expression from outline-regexp.
lisp/textmodes/outline.el
patch
|
blob
|
history
diff --git
a/lisp/textmodes/outline.el
b/lisp/textmodes/outline.el
index 98eb043080b81c9161e787756756cbd6bd28a82c..823f92e4065b286ab35e1331c63b96f27a2c6c68 100644
(file)
--- a/
lisp/textmodes/outline.el
+++ b/
lisp/textmodes/outline.el
@@
-228,7
+228,7
@@
Turning on outline mode calls the value of `text-mode-hook' and then of
(set (make-local-variable 'font-lock-defaults)
'(outline-font-lock-keywords t nil nil backward-paragraph))
(setq imenu-generic-expression
- (list (list nil (concat
outline-regexp "
.*$") 0)))
+ (list (list nil (concat
"^\\(?:" outline-regexp "\\)
.*$") 0)))
(add-hook 'change-major-mode-hook 'show-all nil t))
(defcustom outline-minor-mode-prefix "\C-c@"